/**
 * Created by Administrator on 2016/4/4.
 */
export const host='http://weixin.youxi78.cn';
export const serverHost='http://client.youxi78.cn';
export const imgBase=(value)=>{
    if(!value){
        return '';
    }
    if(/^http/.test(value)){
        return value;
    }else{
        return 'http://7ktui1.com1.z0.glb.clouddn.com/'+value;
    }
};

var android_url='https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx7cd2f2ae8b5a97f5&redirect_uri=http%3a%2f%2fclient.youxi78.cn%2fP%2fWeixin%2fgetcode%2ftype%2f1&response_type=code&scope=snsapi_userinfo&state=STATE&connect_redirect=1#wechat_redirect',
         ios_url='https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx7cd2f2ae8b5a97f5&redirect_uri=http%3a%2f%2fclient.youxi78.cn%2fP%2fWeixin%2fgetcode%2ftype%2f2&response_type=code&scope=snsapi_userinfo&state=STATE&connect_redirect=1#wechat_redirect';

export const weixinUrl=/(iPhone|iPad|iPod){1}.* OS ([0-9]_[0-9])/.test(navigator.userAgent)?ios_url:android_url;